package com.gxa.exception;

import com.gxa.utils.MessageCode;
import lombok.Data;

/**
 * @ClassName GlobalException
 * @Description TODO
 * @Author shelei
 * @Date 2024-01-28 14:13
 **/
@Data
public class GlobalException extends  RuntimeException{
    private MessageCode messageCode;

    public GlobalException(){}

    public GlobalException(String msg){
        super(msg);
    }

    public GlobalException(Throwable t){
        super(t);
    }

    public GlobalException(MessageCode messageCode) {
        this.messageCode = messageCode;
    }
}
